package com.tzkyzj.tiremanager.dto;





import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

public class TireBatchDto {
    private String vehiclePlateNumber;
    private String trailerPlateNumber;
    private String transportCompany;
    private LocalDate installDate;
    private Integer installMileage;
    private List<TireInfo> tires = new ArrayList<>();

    // 内部类表示单个轮胎信息
    public static class TireInfo {
        private String tireNumber;
        private String tireBrand;
        private String tireModel;
        private BigDecimal tirePrice;
        private BigDecimal installCost;
        private Integer axleNumber;
        private String tirePosition; // 使用String类型
        // 修改为数组类型
        private MultipartFile[] photos;

        // Getter 和 Setter
        public MultipartFile[] getPhotos() {
            return photos;
        }

        public void setPhotos(MultipartFile[] photos) {
            this.photos = photos;
        }
        // Getter和Setter
        public String getTireNumber() {
            return tireNumber;
        }

        public void setTireNumber(String tireNumber) {
            this.tireNumber = tireNumber;
        }

        public String getTireBrand() {
            return tireBrand;
        }

        public void setTireBrand(String tireBrand) {
            this.tireBrand = tireBrand;
        }

        public String getTireModel() {
            return tireModel;
        }

        public void setTireModel(String tireModel) {
            this.tireModel = tireModel;
        }

        public BigDecimal getTirePrice() {
            return tirePrice;
        }

        public void setTirePrice(BigDecimal tirePrice) {
            this.tirePrice = tirePrice;
        }

        public BigDecimal getInstallCost() {
            return installCost;
        }

        public void setInstallCost(BigDecimal installCost) {
            this.installCost = installCost;
        }

        public Integer getAxleNumber() {
            return axleNumber;
        }

        public void setAxleNumber(Integer axleNumber) {
            this.axleNumber = axleNumber;
        }

        public String getTirePosition() { return tirePosition; }
        public void setTirePosition(String tirePosition) { this.tirePosition = tirePosition; }
    }

    // Getter和Setter
    public String getVehiclePlateNumber() { return vehiclePlateNumber; }
    public void setVehiclePlateNumber(String vehiclePlateNumber) { this.vehiclePlateNumber = vehiclePlateNumber; }

    public String getTrailerPlateNumber() { return trailerPlateNumber; }
    public void setTrailerPlateNumber(String trailerPlateNumber) { this.trailerPlateNumber = trailerPlateNumber; }

    public String getTransportCompany() { return transportCompany; }
    public void setTransportCompany(String transportCompany) { this.transportCompany = transportCompany; }

    public LocalDate getInstallDate() { return installDate; }
    public void setInstallDate(LocalDate installDate) { this.installDate = installDate; }

    public Integer getInstallMileage() { return installMileage; }
    public void setInstallMileage(Integer installMileage) { this.installMileage = installMileage; }

    public List<TireInfo> getTires() { return tires; }
    public void setTires(List<TireInfo> tires) { this.tires = tires; }
}